public class Demo02 {
    public static void main(String[] args) {
        Direction d = Direction.BEHIND;
        switch (d) {
            case FRONT:
                System.out.println("前面");
                break;
            case BEHIND:
                System.out.println("后面");
                break;
            case LEFT:
                System.out.println("左面");
                break;
            case RIGHT:
                System.out.println("右面");
                break;
            default:
                System.out.println("错误的方向");
        }
        Direction d1 = d;
        System.out.println(d1);
    }
}
